//
//  CodeAlertView.m
//  NewPro
//
//  Created by RYX on 2019/4/12.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "CodeAlertView.h"

@interface CodeAlertView ()

@property (nonatomic,strong) UIView *xibView;

@end

@implementation CodeAlertView

- (UIView *)xibView{
    
    if (!_xibView) {
        
        _xibView = [[[NSBundle mainBundle] loadNibNamed:@"CodeAlertView" owner:self options:nil] objectAtIndex:0];
    }
    
    return _xibView;
}

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self setUI:frame];
        //        self.backgroundColor = [UIColor colorWithHexString:@"0282E0"];
    }
    
    return self;
}

- (void)setUI:(CGRect)frame{
    
    [self addSubview:self.xibView];
    
    self.xibView.frame = frame;
}

@end
